<%@page import="java.util.*;"%>
<?xml version="1.0" encoding="utf-8" ?>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>boardmx</title>
<link href="../mxforum/css/global.css" rel="stylesheet" type="text/css" />
</head>
<body>
<br/>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#F6F6F6">
  <tr>
    <td align="center">BoardMx Logo</td>
    <td align="center">
	<table width="60%" border="0" align="right" cellpadding="5" cellspacing="1" bgcolor="#F6F6F6">
  <tr>
    <td align="center">登录: <a href="userlogin">Login</a></td>
    <td align="center">注册: <a href="register">register</a></td>
    <td align="center">退出: <a href="userlogout">Logout</a></td>
    <td align="center">帮助: <a href="help">help</a></td>
  </tr> 
</table>
	
	</td>
  </tr> 
</table>

<br/>

<%
ArrayList forumlist = (ArrayList)request.getAttribute("forumlist");
%>
<table width="98%" border="0" align="center" cellpadding="10" cellspacing="1" bgcolor="#e9e9e9">
  <tr>
      <td width="5%">Item</td>
    <td width="85%">Forum</td>
    <td width="10%">&nbsp;</td>
  </tr>
  <%int row=1; %>
<c:forEach var="forumlist" items="${forumlist}">
<%
 String bgcolor = "#F6F6F6";
 if (row++%2 != 1) {
   bgcolor = "#efefef";
 }
 %>
 
  <tr bgcolor="#fff">
    <td bgcolor="<%=bgcolor%>">${forumlist.forumId}</td>
    <td bgcolor="<%=bgcolor%>"><a href="threadlist?forumid=${forumlist.forumId}"><h3>${forumlist.title}</h3></a><br/>
	${forumlist.description}</td>
    <td bgcolor="<%=bgcolor%>"></td>
  </tr>
</c:forEach>  
</table>
<br/>

  <table width="30%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#E1E1E1">
  <tr>
    <td align="center" bgcolor="#F7F7F7"><a href="forumindex">Power by: BoardMx Forum[beta] 1.0</a><br/>
</td>
    </tr> 
</table>
</body>
</html>